<h1>Bitacora</h1>

<div class="area" align="center">
    <form action="" method="post" accept-charset="utf-8">
    <div class="split" style="width:40%; padding-left:15px;">
        <label>Operaciones:</label>
        <select name="operacion" size="1">
            <option value="">Seleccione... </option>
            <?php
                                  foreach($oper as $op):?>
            <option value="<?php echo $op[0]['operacion'];?>" ><?php echo $op[0]['operacion'];?></option>

            <?php  endforeach;?>
        </select>
    </div>

    <div class="split" style="width:40%; padding-left:15px;">
        <label>Tablas:</label>
        <select name="tabla" size="1">
            <option value="">Seleccione... </option>
            <?php
                       foreach($tabla as $tab):  ?>
            <option value="<?php echo $tab[0]['tabla'];?>" ><?php echo $tab[0]['tabla'];?></option>
            <?php  endforeach;?>
        </select>
    </div>
        <div style="display:table-row;">
        <input class="boton" type="submit" name="Buscar" value="Buscar">
    </div>
    </form>
</div>


</br>
<div  class="areabit" align="center">
    <table>
        <tr>
            <th  width="80">Id usuario</th>
            <th width="170">fecha y Hora </th>
            <th width="150">Operacion</th>
            <th width="80">Tabla </th>

        </tr>

        <!-- Here is where we loop through our $posts array, printing out post info -->

        <?php foreach ($consulta as $con): ?>
        <tr>
            <td><div align="center"><?php echo $con[0]['id_usuario']; ?></div></td>
            <td><div align="center"><?php echo $con[0]['horafechaacceso']; ?></div></td>
            <td><div align="center"><?php echo $con[0]['operacion']; ?></div></td>
            <td><div align="right"><?php echo $con[0]['tabla']; ?> </div></td>
        </tr>
        <?php endforeach; ?>

    </table>

</div>